<?php
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
use_stylesheet('/css/patient.css');
use_helper('Object', 'Validation', 'ObjectAdmin', 'I18N', 'Date');
?>
<div id="sf_admin_container">

<h1>Interventions</h1>
<table class="patient_infos" id="liste">
    <tr>
        <th>Séjour</th>
        <th>Date</th>
        <th>Motif</th>
        <th>Actions</th>
    </tr>
    <?php
    foreach ($listeInterventions as $intervention){
        echo '<tr>';
        echo '<td>'.$intervention->getSejourId().'</td>';
        echo '<td>'.$intervention->getDate().'</td>';
        echo '<td>'.$intervention->getMotif().'</td>';
        echo '<td>'.$intervention->getActions().'</td>';
        echo '</tr>';
    }
    ?>
</table>
<?php echo button_to(__('Ajouter une intervention'), 'intervention/createIntervention?idsejour='.$idsejour, array (
  'class' => 'button_action', 'id' => 'action_add'
)) ?>
<br />
<?php echo button_to(__('Retour à la fiche patient'), 'patient/show?id='.$sf_sejour->getPatientId(), array (
  'class' => 'button_action', 'id' => 'action_list'
)) ?>
</div>